//
// Created by lingzhitech on 25-11-7.
//

#include "LimitQuote.hpp"
double LimitQuote::netPrice(std::size_t count) const {
    if (count > maxQuantity_) {
        return maxQuantity_ * price_ * (1 - discount_) + (count - maxQuantity_) * price_;
    }else {
        return count * price_ * (1 - discount_);
    }
}
